package com.biobase;

import org.apache.poi.xssf.usermodel.XSSFCell;
import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

import java.io.IOException;

/**
     * Hello world!
     *
     */
    public class App {
        public static void main(String[] args) {
            try {
                //获取系统文档
//                POIFSFileSystem fspoi=new POIFSFileSystem(new FileInputStream("C:\\Users\\KK\\IdeaProjects\\JAVAstudy\\src\\ToolsInMyOffice\\src\\main\\java\\com\\biobase\\demo.xlsx"));
                //创建工作薄对象
                XSSFWorkbook workbook=new XSSFWorkbook("C:\\Users\\KK\\IdeaProjects\\JAVAstudy\\src\\ToolsInMyOffice\\src\\main\\java\\com\\biobase\\demo.xlsx");
                XSSFWorkbook xssfWorkbook = new XSSFWorkbook("C:\\Users\\KK\\IdeaProjects\\JAVAstudy\\src\\ToolsInMyOffice\\src\\main\\java\\com\\biobase\\demo.xlsx");
                //创建工作表对象
                XSSFSheet sheet=workbook.getSheet("sheet1");
                //得到Excel表格
                XSSFRow row = sheet.getRow(0);
                //得到Excel工作表指定行的单元格
                XSSFCell cell = row.getCell(1);
                System.out.println(cell);
            } catch (IOException e) {
                e.printStackTrace();
            }



        }



    }

